<template>
	<view class="container_sub">
		<up-scroll-list :indicator="false">
			<view class="img_content">
				<view class="card_img" v-for="(item, index) in 3" :key="index">
					<image class="game_img" src="@/static/images/home/game.png" mode=""></image>
				</view>
			</view>
		</up-scroll-list>
		
		<view class="card_list">
			<view class="card_title">
				<view class="t_text">Panda Boxes</view>
				<view class="t_btn">See All</view>
			</view>
			<up-scroll-list :indicator="false">
				<view class="card_content">
					<view class="card_img" v-for="(item, index) in 5" :key="index">
						<image class="game_img" src="@/static/images/home/game.png" mode=""></image>
					</view>
				</view>
			</up-scroll-list>
		</view>
	</view>
</template>

<script setup>
import { ref, reactive, onMounted, watch } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';

onMounted(() => {});
</script>

<style lang="scss" scoped>
.container_sub {
	background-color: #19191f;
	.img_content{
		display: flex;
		align-items: center;
		.card_img{
			margin-right: 40rpx;
			height: 586rpx;
			width: 450rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			&:last-child{
				margin-right: 0;
			}
			.game_img{
				width: 100%;
				height: 100%;
				display: block;
			}
		}
	}
	.card_list {
		margin-top: 40rpx;
		.card_title {
			display: flex;
			align-items: center;
			justify-content: space-between;
			.t_text {
				font-size: 32rpx;
				font-weight: bold;
			}
			.t_btn {
				background-color: rgba(47, 208, 128, 0.33);
				height: 40rpx;
				line-height: 40rpx;
				font-size: 24rpx;
				padding: 0 18rpx;
				border-radius: 20rpx;
				color: #00b31e;
			}
		}
		.card_content {
			display: flex;
			margin-top: 40rpx;
			.card_img {
				width: 280rpx;
				height: 320rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 12rpx;
				margin-right: 20rpx;
				overflow: hidden;
				&:last-child {
					margin-right: 0;
				}
				.game_img {
					width: 100%;
					height: 100%;
					display: block;
				}
			}
		}
	}
}
</style>
